{% extends "layout.html" %}                #通过这句话，来进行继承挂钩，和主体base.html进行链接
{% block content %}
	<style type="text/css">
		.hide{display: none;}
	</style>
	<div class="wrap" style="margin-top: 20px;padding: 25px 30px;background-color: #fff;box-sizing: border-box;">
		<!--
		<div>
			<a style="color: #2D2D2D;opacity: .5;" href="/">Home</a>
			<i style="color: #2D2D2D;opacity: .5;">></i>
			<a href=/Summary">Loan application</a>
		</div>
		-->
		<div class="tc" style="padding: 50px 0;">
			<img src="static/images/1-8_error.png">
		</div>
		<div class="error-tips" style="display: block;padding: 20px 0;text-align: center; color: ##2D2D2D;font-size: 16px;">
			<p>We are sorry but you are declined because:</p>
			<p>&nbsp;&nbsp;&nbsp;</p>
			<p style="margin-top: 0px;padding-left: 10px;font-size: 16px;">
				<span class="hide" id="third">We do not lend a third Mortgage.<br></span>
				<span class="hide" id="exceed">The ratio of loan-to-value is too high.<br></span>
				<span class="hide" id="long">We need at least two weeks to proceed your case. At certain season, this time will be longer.<br></span>
			</p>
			<p>&nbsp;&nbsp;&nbsp;</p>
			<p style="margin-top: 0px;">We really want to help. You are always welcomed if you change your request criteria.</p>
			<a href="/" style=" width: 200px;margin-top: 50px;" type="button" class="disabled layui-btn layui-btn-primary">RETURN HOME</a>
			<div style="height: 50px;"></div>

		</div>
	</div>
	<div style="height: 200px;"></div>
	<!--<script type="text/javascript" src=" http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>-->
	<script type="text/javascript" src="https://d3s6yopk5rlhed.cloudfront.net/static/js/jquery.min.js"></script>
	<script type="text/javascript">
		$(function() {
			var errs = JSON.parse( localStorage.getItem('errs') ) || {};
			if( errs ) {
				if( errs.third == 1 ) {
					$('#third').removeClass('hide');
				}
				if( errs.exceed == 1 ) {
					$('#exceed').removeClass('hide');
				}
				if( errs.long == 1 ) {
					$('#long').removeClass('hide');
				}
			}	
		});
	</script>
{% endblock %}